import request from '@/utils/request'

export function play(params){
	return request({
		url:'/player/play',
        params
	})
}

export function getLastHistoryByChapterId(params){
	return request({
		url:'/course/history/getLastHistoryByChapterId',
        params
	})
}

export function recordHistory(data){
	return request({
		url:'/course/history/recordHistory',
		data,
		method:'post'
	})
}
